package com.ruoyi.peach.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 农事对象 farming
 * 
 * @author ruoyi
 * @date 2025-05-04
 */
public class Farming extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 农事类型 */
    @Excel(name = "农事类型")
    private Integer farmingType;

    /** 地块序号 */
    @Excel(name = "地块序号")
    private Long plot;
    @Excel(name = "地块名称")
    private String plotName;
    /** 地块位置 */
    private String location;

    /** 作业方式 */
    @Excel(name = "作业方式")
    private Integer operatingMode;

    /** 操作日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operatingDate;

    /** 农事描述 */
    @Excel(name = "农事描述")
    private String description;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private Integer operator;
    /** 操作人员昵称 */
    @Excel(name = "操作人员昵称")
    private String nickName;

    /** 照片地址 */
    @Excel(name = "照片地址")
    private String imgUrls;

    /** 添加人员 */
    @Excel(name = "添加人员")
    private Long userId;

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Long getPlot() {
        return plot;
    }

    public void setPlot(Long plot) {
        this.plot = plot;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFarmingType(Integer farmingType) 
    {
        this.farmingType = farmingType;
    }

    public Integer getFarmingType() 
    {
        return farmingType;
    }

    public void setOperatingMode(Integer operatingMode) 
    {
        this.operatingMode = operatingMode;
    }

    public Integer getOperatingMode() 
    {
        return operatingMode;
    }

    public void setOperatingDate(Date operatingDate) 
    {
        this.operatingDate = operatingDate;
    }

    public Date getOperatingDate() 
    {
        return operatingDate;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setOperator(Integer operator) 
    {
        this.operator = operator;
    }

    public Integer getOperator() 
    {
        return operator;
    }

    public void setImgUrls(String imgUrls) 
    {
        this.imgUrls = imgUrls;
    }

    public String getImgUrls() 
    {
        return imgUrls;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public String getPlotName() {
        return plotName;
    }

    public void setPlotName(String plotName) {
        this.plotName = plotName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("farmingType", getFarmingType())
            .append("operatingMode", getOperatingMode())
            .append("operatingDate", getOperatingDate())
            .append("description", getDescription())
            .append("operator", getOperator())
            .append("imgUrls", getImgUrls())
            .append("userId", getUserId())
            .toString();
    }
}
